import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib as mpl
import warnings
warnings.filterwarnings("ignore")
mpl.rcParams.update(mpl.rcParamsDefault)
sns.set_style("white")

insurance = pd.read_csv('C:/Users/Lenovo/Desktop/机器学习课程/Data-Visualization-master/Seaborn/Datasets/insurance.csv')

###################################################################################################
# sns.boxplot(insurance.bmi)
# plt.show()

sns.boxplot(x=insurance.smoker, y=insurance.charges, order=['no', 'yes'])
plt.show()